using TMPro;
using UnityEngine;

public class TEXTUI_SubmeshChecker : MonoBehaviour
{
	[SerializeField]
	private TextMeshProUGUI TextUI;

	private void Update()
	{
		if (((TMP_Text)TextUI).transform.childCount > 0)
		{
			Debug.LogWarning((object)"Submesh TextMeshPro Detected");
			Debug.LogWarning((object)((TMP_Text)TextUI).text);
			((Behaviour)this).enabled = false;
		}
		if (((TMP_Text)TextUI).text.Contains('…'))
		{
			Debug.LogError((object)"Incorrect elipse detected");
			Debug.LogWarning((object)((TMP_Text)TextUI).text);
		}
	}
}
